#!/usr/bin/env python
#-_- coding: utf-8 -_-
import os
import time
source = ['/home/sdt01/']
target_dir = '/home/sdt02/'
today_dir = target_dir + time.strftime('%Y%m%d')
time_dir = time.strftime("%H%M%S")
touch = today_dir + os.sep + time_dir + '.zip'
command_touch = "zip -qr " + touch + ' '+' '.join(source)
if os.path.exists(today_dir)==0:
  os.mkdir(today_dir)
if os.system(command_touch)==0:
  print 'Success backup Up'
else: 
  print 'Failed backup'
